package cn.edu.sdjzu.xg23.kcsj01_backend.mapper;

import cn.edu.sdjzu.xg23.kcsj01_backend.entity.Instruction;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 张烁瑜
 * @Date 2025/6/3 21:51
 */
@Mapper
public interface InstructionMapper {

    boolean addInstruction(Instruction instruction);
    boolean updateInstruction(Instruction instruction);
    boolean delete(Long id);
    List<Instruction> selectInstructionsByCondition(@Param("instruction") Instruction instruction,
                                                    @Param("employeeId") Long employeeId,
                                                    @Param("employeeName") String employeeName);
    boolean approvalInstruction(Instruction instruction);
}